package main

import "fmt"

var sum int = 1

func main() {
	//test6(10)

	test7(5)
	fmt.Println(sum)
}

func test6(a int) {

	if a == 0 {
		return
	}
	a--
	test6(a)
	fmt.Println(a)

}
func test7(a int) {
	if a == 1 {
		return
	}
	test7(a - 1)
	//fmt.Println("a=",a)
	fmt.Println(sum)
	//fmt.Printf("%d*%d\n",sum,a)
	sum *= a
	//fmt.Println(sum)
}
